package day03_oop_code.com.itheima.d11_object;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student("小昭", 21, 100);
        System.out.println("s1.toString() = " + s1.toString());
        System.out.println("s1 = " + s1);

        System.out.println("----------------");
        Student s2 = new Student("小昭", 21, 100);
        Student s3 = new Student("小昭", 21, 100);
        System.out.println("s2.equals(s3) = " + s2.equals(s3));
        System.out.println("(s2 == s3) = " + (s2 == s3));
    }
}
